//
//  KRRecipeInfo.m
//  cookBook
//
//  Created by kuroken on 16/1/23.
//  Copyright © 2016年 kuroken. All rights reserved.
//

#import "KRRecipeInfo.h"
#import <MJExtension.h>
#import "__lldb_autogen_nspair.h"

@implementation KRRecipeInfo
+ (void)load
{
    [self mj_setupReplacedKeyFromPropertyName:^__lldb_autogen_nspair *{
        return (__lldb_autogen_nspair *)@{
                                          @"recipeID" : @"RecipeId",
                                          @"cover" : @"Cover",
                                          @"title" : @"Title",
                                          @"intro" : @"Intro",
                                          @"cookTime" : @"CookTime",
                                          @"tips" : @"Tips",
                                          @"userName" : @"UserName",
                                          @"favCount" : @"FavoriteCount",
                                          @"reviewTime" : @"ReviewTime",
                                          @"userID" : @"UserId",
                                          @"avatar" : @"Avatar",
                                          @"userCount" : @"UserCount",

                                          @"like" : @"IsLike",
                                          
                                          @"tagsArray" : @"Tags",
                                          @"stepArray" : @"Steps",
                                          @"stuffArray" : @"Stuff",
                                          @"commentCount" : @"CommentCount",
                                          @"commentListArray" : @"CommentList",

                                          @"vip" : @"Vip",
                                          @"video" : @"HasVideo",
                                          @"duration" : @"Duration",
                                          @"videoCover" : @"VideoCover"
                                          };
    }];
    
    [self mj_setupObjectClassInArray:^__lldb_autogen_nspair *{
        return (__lldb_autogen_nspair *)@{
                                          @"tagsArray" : @"KRRecipeTags",
                                          @"stepArray" : @"KRRecipeSteps",
                                          @"stuffArray" : @"KRStuff",
                                          @"commentListArray" : @"KRRecipeComment"
                                          };
    }];
}
@end
